<?xml version="1.0" encoding="UTF-8"?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<ui:composition xmlns="http://www.w3.org/1999/xhtml"
                xmlns:p="http://primefaces.prime.com.tr/ui"
                xmlns:h="http://java.sun.com/jsf/html"
                xmlns:f="http://java.sun.com/jsf/core"
                xmlns:ui="http://java.sun.com/jsf/facelets"
                xmlns:c="http://java.sun.com/jsp/jstl/core"
                template="./../templates/FoodSageTemplateUnauthenticated.xhtml">

    <link href="./../resources/css/default.css" rel="stylesheet" type="text/css" />
    <link href="./../resources/css/tableLayout.css" rel="stylesheet" type="text/css" />
    <h:head>
        <title> Preview generated for #{stakeholderPreviewManagedBean.stakeholderAccountState.username}</title>

    </h:head>


    <ui:define name="left">


    </ui:define>

    <ui:define name="content">
        <f:view beforePhase="#{resturantManagedBean.initView}">
            <p:panel header="#{resturantManagedBean.header}" style="width: inherit;">
                <h:panelGrid columns="2">
                    <p:graphicImage id="imagePreview" value="#{resturantManagedBean.imgLink}" style="width: 550px; height: 270px"/>
                    <p:row>
                        <h2>
                            <h:outputText value="Dining" style="width: inherit; font-weight: bold"/></h2><br/>
                        <h:outputText value="#{resturantManagedBean.desc}" style="width: inherit;"/>
                    </p:row>
                </h:panelGrid>

                <p:separator />
               
                    <p:dataTable id="viewAllRest" var="stakeholders" value="#{stakeholderManagedBean.stakeholder}">
                        
                        <p:column>  
                            <f:facet name="header">  
                                Restaurants
                            </f:facet>  
                            <h:outputText value="#{stakeholders.corpName}" /> 
                            
                        </p:column>  
                        
                         <p:column>  
                            <f:facet name="header">  
                                Restaurants Description
                            </f:facet>  
                             <h:outputText value="#{stakeholders.stakeholderDesc}" /> 
                            
                        </p:column>  
                         <p:column>  
                            <f:facet name="header">  
                                Number of outlet
                            </f:facet>  
                             
                             <h:outputText value="#{stakeholders.branch.size()}" /> 
                            
                        </p:column>  
                        <p:column>  
                            <f:facet name="header">  
                                Website
                            </f:facet>  
                             
                            <h:outputText value="#{stakeholders.corpFaxNumber}" /> 
                            
                        </p:column>  
                        
                        
                        

                    </p:dataTable>
            
            </p:panel>








        </f:view>
    </ui:define>
</ui:composition>
